package com.huabo.contract.mysql.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author huabo
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("TBL_CONTRACT_APPENDIXSIGNING")
@ApiModel(value = "TblContractAppendixMySqlsigning对象", description = "")
public class TblContractAppendixsigningMySql implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键Id 自增")
    @TableId("SINGINGID")
    @Id
    private BigDecimal singingId;

    @ApiModelProperty(value = "附件名称")
    @TableField("SINGINGNAME")
    private String singingName;

    @ApiModelProperty(value = "附件路径")
    @TableField("SINGINGPATH")
    private String singingPath;

    @ApiModelProperty(value = "附件大小")
    @TableField("SINGINGSIZE")
    private BigDecimal singingSize;

    @ApiModelProperty(value = "附件类型")
    @TableField("SINGINGTYPE")
    private BigDecimal singingType;

    @ApiModelProperty(value = "文件状态")
    @TableField("SINGINGSTATUS")
    private BigDecimal singingStatus;

    @ApiModelProperty(value = "PDF文件地址")
    @TableField("PDFVIEWFILEPATH")
    private String pdfViewFilePath;

    @ApiModelProperty(value = "所属合同")
    @TableField("CONSTRACTID")
    private BigDecimal constractId;

    @ApiModelProperty(value = "上床时间")
    @TableField("UPLOADTIME")
    @JSONField(format = "yyyy-MM-dd")
    private Date uploadTime;

    @ApiModelProperty(value = "上传人ID")
    @TableField("UPLOADER")
    private BigDecimal uploader;


    @Transient
    @ApiModelProperty(value = "上传人姓名")
    private String uploaderName;

    @Transient
    private String realname;
}
